package com.zr.legalperson.mapper;

import com.zr.legalperson.model.LegalPerson;
import com.zr.legalperson.model.Plant;
import com.zr.legalperson.model.PlantSelectResultVo;
import com.zr.legalperson.model.PlantSelectVo;
import com.zr.legalperson.model.vo.PlantAddVo;
import com.zr.legalperson.model.vo.PlantResultVo;
import com.zr.util.ResultVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by Administrator on 2019/1/3.
 */
@Mapper
public interface LegalPersonMapper {
    List<LegalPerson> legalPersonDropDownValue();

    int queryCount(PlantSelectVo plant);

    List<PlantSelectResultVo> queryPage(PlantSelectVo plant);

    List<Plant> queryPlantByCode(@Param("code") String code);

    int legalPlantAdd(Plant plant);

    int legalPlantUpdatestatus(Plant plant1);

    int legalPlantUpdate(Plant plant1);
}
